#include "propertydlgimpl.h"

#include <QDateTime>
//
PropertyDlgImpl::PropertyDlgImpl( QWidget * parent, Qt::WFlags f) 
	: QDialog(parent, f)
{
	setupUi(this);
}

void PropertyDlgImpl::setupData(QString dateFormat, QString name, QString type, QDateTime creationDate)
{
	laName->setText(name);
	
	if (type == "CATEGORY")
		laType->setText(tr("Category"));
	else if (type == "PAGE")
		laType->setText(tr("Page"));
		
	laCreationDate->setText(creationDate.toString(dateFormat));
}
//

